[PATCH 7/7] bgo543308 - Remove the default_width/height stuff, since we are not using...
authorFederico Mena Quintero <federico@novell.com>
Wed, 20 Aug 2008 01:13:17 +0000 (01:13 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Wed, 20 Aug 2008 01:13:17 +0000 (01:13 +0000)
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=21168

gtk/gtkfilechooserdefault.c
gtk/gtkfilechooserprivate.h

index 50e3810a69642fcf408f9bae3ba8673119868718..6e82cff1c4dab91065e7048a752f203209d801f4 100644 (file)
@@ -5887,18 +5887,6 @@ gtk_file_chooser_default_size_allocate (GtkWidget     *widget,
   impl = GTK_FILE_CHOOSER_DEFAULT (widget);
 
   GTK_WIDGET_CLASS (_gtk_file_chooser_default_parent_class)->size_allocate (widget, allocation);
-
-  impl->default_width = allocation->width;
-  impl->default_height = allocation->height;
-
-  if (impl->preview_widget_active &&
-      impl->preview_widget &&
-      GTK_WIDGET_DRAWABLE (impl->preview_widget))
-    impl->default_width -= impl->preview_widget->allocation.width + PREVIEW_HBOX_SPACING;
-
-  if (impl->extra_widget &&
-      GTK_WIDGET_DRAWABLE (impl->extra_widget))
-    impl->default_height -= GTK_BOX (widget)->spacing + impl->extra_widget->allocation.height;
 }
 
 static gboolean
index 39be43366af57b42b211c8353156366cfac1dd7c..ef60734fe603a82c35b0f92b46274904bfd6cb7a 100644 (file)
@@ -282,9 +282,6 @@ struct _GtkFileChooserDefault
   GSource *shortcuts_drag_outside_idle;
 #endif
 
-  gint default_width;
-  gint default_height;
-
   /* Flags */
 
   guint local_only : 1;